<?php session_start();
include "../conexao.php";

if (!isset($_SESSION["txt_login"]))
{ print "<script type = 'text/javascript'> location.href = 'index.php'</script>"; exit();}

$acao = $_GET["acao"];
$id = $_GET["id"];
$id_cadastro_usuarios = $_GET["id_cadastro_usuarios"];


if($acao=="Excluir"){
mysql_query("delete from curriculos where id_curriculos='$id'");
mysql_query("delete from cadastro_usuarios where id_cadastro_usuarios='$id_cadastro_usuarios'");

echo "<META HTTP-EQUIV=REFRESH CONTENT= '0;URL=principal.php?link=32'>
			<script type \"text/JavaScript\">
				alert(\"Curriculo excluido com sucesso.\");
			</script>";
}
?>